import request from '@/router/axios';

export const sidedDetail = (cabinetId) => {
  return request({
    url: '/api/cabinet-cell/sided-detail',
    method: 'get',
    params: {
      cabinetId
    }
  })
}

export const sidedPage = (params) => {
  return request({
    url: '/api/cabinet-cell/sided-page',
    method: 'get',
    params: {
      ...params,
    }
  })
}


export const save = (cellId,userIds) => {
  return request({
    url: '/api/cabinet-cell/save',
    method: 'post',
    params: {
      cellId,
      userIds
    }
  })
}


export const remove = (cellId,userIds) => {
  return request({
    url: `/api/cabinet-cell/remove`,
    method: 'post',
    params: {
      cellId,
      userIds
    }
  })
}

